/*
 *  VertexBuffer.cpp
 *  RTDemo
 *
 *  Created by steveca  on 10/05/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

#include <assert.h>
#include "VertexBuffer.h"

namespace RTRT
{
    Vertex *VertexBuffer :: create(size_t length, const VertexFormat &vf)
    {
        assert( length > 0);
        m_buffer = new Vertex[length];
        m_length = length;
        
        
    }
    
    void VertexBuffer :: destroy()
    {
        if (m_buffer)
            delete[] m_buffer;
        
        m_buffer = NULL;
        m_length = 0;
    }
    
    
}

